Micron Document
🌎 rns.kin.earth git 🌍

Node / dev / reticulum / commits / be11f5e

Commit be11f5ed68db970cbb84f1fccb288e218f6b67b9


Parents : 2809d1f
Author : Mark Qvist <mark@adepta.io>
Date : 2018-12-01T11:32:18+01:00

AX.25 TX delay

Changes

1 files changed, 5 insertions(+), 0 deletions(-)


Diff

diff --git a/RNS/Interfaces/AX25KISSInterface.py b/RNS/Interfaces/AX25KISSInterface.py
index d118b01a..9217b4fa 100644
--- a/RNS/Interfaces/AX25KISSInterface.py
+++ b/RNS/Interfaces/AX25KISSInterface.py
@@ -56,6 +56,7 @@ class AX25KISSInterface(Interface):
self.stopbits = stopbits
self.timeout = 100
self.online = False
+ self.txdelay = 0.4
self.packet_queue = []
self.flow_control = flow_control
@@ -214,6 +215,10 @@ class AX25KISSInterface(Interface):
data = data.replace(chr(0xc0), chr(0xdb)+chr(0xdc))
kiss_frame = chr(0xc0)+chr(0x00)+data+chr(0xc0)
+ if (self.txdelay > 0):
+ RNS.log(str(self.name)+" delaying TX for "+str(self.txdelay)+" seconds", RNS.LOG_EXTREME)
+ sleep(self.txdelay)
+
written = self.serial.write(kiss_frame)
if written != len(kiss_frame):
if self.flow_control:

Served by rngit 1.5.2 - Generated in 0.03s